<template>
  <div>
    <h2>列表</h2>
    <ul>
      <li v-for="item in list" :key="item.id">
        <router-link :to="'/demoDetail/' + item.id">{{item.title}}</router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data(){
    return {
      list: [
        {id: 1, title: 'HTML5'},
        {id: 2, title: 'CSS3'},
        {id: 3, title: 'JAVASCRIPT'},
        {id: 4, title: 'VUE'},
        {id: 5, title: 'Echarts'},
      ]
    }
  }
}
</script>

<style lang="less" scoped>

</style>

